package com.yunyike.service;

import java.util.List;
import java.util.Map;

import com.yunyike.dto.OrderDTO;
import com.yunyike.dto.UserOrdersDTO;
import com.yunyike.dto.cart.CartDTO;
import com.yunyike.model.Coupon;
import com.yunyike.model.Orders;
import com.yunyike.model.Recepient;
import com.yunyike.model.User;

public interface IOrderService {

	public Orders selectByPrimaryKey(String orderId);
	//public OrderDTO submitOrder(User user, String sessionId);
	
	public Orders submitOrder(User user,Recepient recepient,Coupon coupon,CartDTO cartDTO);
	
	public Map<String, Integer> findOrderCountByCondition(User user);

	public List<UserOrdersDTO> findUserOrders(UserOrdersDTO param);
	
	public String updateOrderStatu(UserOrdersDTO dto,Integer orderStatus);
}
